﻿using System;
using System.Collections.Generic;

namespace MMCP
{

    public class TermHierarchyDataComparer : IEqualityComparer<TermHierarchyData>
    {
        public bool Equals(TermHierarchyData x, TermHierarchyData y)
        {
            return string.Equals(x.HierarchyID, y.HierarchyID, StringComparison.InvariantCultureIgnoreCase);
        }

        public int GetHashCode(TermHierarchyData obj)
        {
            return obj.HierarchyID.GetHashCode();
        }
    }
}